﻿@model ExpressQuiz.ViewModels.QuizViewModel

<h2>Delete</h2>

<h3>Are you sure you want to delete this?</h3>
<div>
    <h4>Quiz</h4>
    <hr />
    <dl class="dl-horizontal">
        <dt>
            @Html.DisplayNameFor(model => model.Name)
        </dt>

        <dd>
            @Html.DisplayFor(model => model.Name)
        </dd>

        <dt>
            @Html.DisplayNameFor(model => model.Summary)
        </dt>

        <dd>
            @Html.DisplayFor(model => model.Summary)
        </dd>



    </dl>

    @using (Html.BeginForm()) {
        @Html.AntiForgeryToken()

        <div class="form-actions no-color">
           
            @Html.ActionLink("Back", "Details", new { id = @Model.QuizId }, new { @class = "btn btn-primary col-md-offset-10 col-md-1" })
            <input type="submit" value="Delete" class="btn btn-danger col-md-1" /> 
           
        </div>
    }
</div>
